package com.un.ebs.inventory.service;

import com.un.ebs.inventory.domain.InventoryNoteType;
import com.un.ebs.inventory.domain.InventoryNoteTypeExt;
import com.un.ebs.inventory.dto.InventoryNoteTypeAddDto;
import com.un.ebs.inventory.dto.InventoryNoteTypeUpdateDto;
import com.un.ebs.inventory.enums.InventoryTypeEnum;
import com.un.ebs.inventory.enums.OrderNoteTypeEnum;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author liubo
 * @since 2020-05-23
 */
public interface InventoryNoteTypeService {

    void add(InventoryNoteTypeAddDto req);

    void update(InventoryNoteTypeUpdateDto req);

    void delete(String id);

    String queryCode(String typeId, int currentMaxCode);

    String queryCode(String profix, String dateFormat, int seqLen, int currentMaxCode);

    InventoryNoteTypeExt queryById(String id);

    InventoryNoteTypeExt queryOneByType(InventoryTypeEnum type);

    InventoryNoteTypeExt queryOneByCode(String code);

    List<InventoryNoteTypeExt> querInType();

    List<InventoryNoteTypeExt> queryOutType();

    List<InventoryNoteTypeExt> queryMoveType();

    List<InventoryNoteTypeExt> queryByType(InventoryTypeEnum type);

    List<InventoryNoteTypeExt> queryByType(OrderNoteTypeEnum orderType, InventoryTypeEnum type, boolean autoCreate);

    List<InventoryNoteTypeExt> queryAll();
}
